<?php if (!defined('THINK_PATH')) exit();?><!DCOTYPE HTML>
<html>
<head>
	<meta charset="UTF-8" />
	<title>社区管理</title>
	<link rel="stylesheet" href="/eduction137/Public/Admin/libs/bootstrap-3.3.0/css/bootstrap.min.css"  />

	<script type="text/javascript" src="/eduction137/Public/Admin/js/jquery.1.11.1.min.js"></script>
	<script type="text/javascript" scr="__PIUBLIC__/Admin/libs/bootstrap-3.3.0/js/bootstrap.min.js"></script>

<style>
table{margin-top: 20px; text-align:center;}
td{padding-left: 10px;}
tr{height: 30px; border-bottom: 1px solid #ccc; }
</style>

</head>
<body>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">后台</a>
    </div>
    <div>
        <ul class="nav navbar-nav">
            <li><a href="#">课程</a></li>
            <li class="active"><a href="<?php echo U('index');?>">社区</a></li>
            <li><a href="<?php echo U('/article/index');?>">文章</a></li>
            <li><a href="#">用户</a></li>
            <li><a href="#">设置</a></li>
        </ul>
    </div>
    </div>
</nav>
<div class="container">
	<div class="col-md-2" style="margin-top:30px; height:100%; border-right:1px solid #ccc;">
		<div style="margin-top:30px;">
			<a href="<?php echo U('/CommunityType/index');?>">社区类型管理</a>
		</div>
		<div>
			<a href="<?php echo U('index');?>">社区管理</a>
		</div>
	</div>
	<div class="col-md-10">
		<h1 style="text-align:center;">社区管理</h1>
		<div style="text-align:right;">
			<p>第<?php echo ($page); ?>页 共<?php echo ($maxpage); ?>页  共<?php echo ($count); ?>个</p>
		</div>
		<table cellspacing="10" align="center">
			<tr style="color:#428bca;">
				<td>社区ID</td>
				<td>社区名</td>
				<td>社区类型</td>
				<td>社区图标</td>
				<td>创建者</td>
				<td>创建时间</td>
				<td>社区状态</td>
				<td>操作</td>
			</tr>
		<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
				<td><?php echo ($vo["id"]); ?></td>
				<td><?php echo ($vo["comm_name"]); ?></td>
				<td><?php echo ($vo["comm_type"]); ?></td>
				<td><?php echo ($vo["comm_icon"]); ?></td>
				<td><?php echo ($vo["create_user"]); ?></td>
				<td><?php echo ($vo["create_time"]); ?></td>
				<td><?php echo ($vo["status"]); ?></td>
				<td>
					<a href="<?php echo U('delete');?>?id=<?php echo ($vo["id"]); ?>">删除</a>
				</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</table>
		<div style="text-align: center; margin-top: 50px;">
			<?php $__FOR_START_25397__=1;$__FOR_END_25397__=$maxpage+1;for($i=$__FOR_START_25397__;$i < $__FOR_END_25397__;$i+=1){ ?><a href="<?php echo U('index');?>?page=<?php echo ($i); ?>" style="margin: 5px;"><?php echo ($i); ?></a><?php } ?>
		</div>
	</div>
</div>
</body>
<html>